import "dotenv/config";
import inquirer from "inquirer";
import { getZentao } from "./utils/getTask";
import { questions } from "./questions/task";

inquirer.prompt(questions).then(async (answers) => {
    console.log(answers);
    if (answers.website === "禅道(http://115.233.227.46:2233/zentao/project-bug-52.html)") {
        const res = await getZentao();;
        if (res) console.log(`获取到${res.length}条任务`);
    }
});
